<div class="container scrollbar">
  <nz-spin [nzSpinning]="loading">
    <div nz-row nzGutter="16" [hidden]="showType == 'list'">
      <nz-empty *ngIf="!show"></nz-empty>
      <div *ngIf="show">
        <div nz-col nzXs="24" nzSm="24" nzMd="16" nzLg="16" nzXl="16">
          <g2-custom (render)="render($event)"></g2-custom>
        </div>
        <div nz-col nzXs="24" nzSm="24" nzMd="8" nzLg="8" nzXl="8">
          <div class="chart__label">
            <span class="chart__label-item">库存合计<span>{{sum}}</span></span>
            <span *ngFor="let i of data" class="chart__label-item">
              {{ i.text }}<span [ngStyle]="{ color: i.color }">{{ i.count }}</span>
            </span>
          </div>
        </div>
      </div>
    </div>
    <div class="card__time" [ngStyle]="{ visibility: time ? 'visible' : 'hidden' }">更新于: {{ time | _date }}</div>
  </nz-spin>

</div>
